package redemo5.service1;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import redemo5.dao1.IUserDAO;

@Component
public class UserServicelmpl implements IUserService{
    @Autowired
    private IUserDAO userDAO;
    public boolean login(String username,String password){
        System.out.println("UserService:开始处理用户登录操作");
        System.out.println("UserService:验证用户信息是否有误");
        System.out.println("UserService:获取用户信息.......");
        boolean success =userDAO.findUser();
        if (success){
            System.out.println("UserService:用户登录成功");
        }else {
            System.out.println("UserService:用户登录失败");
        }
        return success;
    }

}
